import request from "@/utils/request";

// 查询文件模版列表
export function listBizDocModel(query) {
  return request({
    url: "/biz/bizDocModel/list",
    method: "get",
    params: query,
  });
}

// 查询文件模版详细
export function getBizDocModel(id) {
  return request({
    url: "/biz/bizDocModel/" + id,
    method: "get",
  });
}

// 新增文件模版
export function addBizDocModel(data) {
  return request({
    url: "/biz/bizDocModel",
    method: "post",
    data: data,
  });
}

// 修改文件模版
export function updateBizDocModel(data) {
  return request({
    url: "/biz/bizDocModel",
    method: "put",
    data: data,
  });
}

// 删除文件模版
export function delBizDocModel(id) {
  return request({
    url: "/biz/bizDocModel/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizDocModel/findMaxSort",
    method: "get",
  });
}
// 导出文件模版
export function exportBizDocModel(query) {
  return request({
    url: "/biz/bizDocModel/export",
    method: "get",
    params: query,
  });
}
